#ifndef _O_STDAFX_H
#define _O_STDAFX_H

/*Windows*/
#ifdef _WIN32

#include <Windows.h>

#include <d3d9.h>
#pragma comment(lib,"d3d9.lib")

#include "o_resource.h"

/*Win32 macros*/
#define _T(l) TEXT(l)

#define O3_EXPORT_API  extern "C" __declspec(dllexport)
#define O3_IMPORT_API  extern "C" __declspec(dllimport)

#define O3_API O3_EXPORT_API

/*Mac OS X*/
#elif __APPLE__

/*Linux*/
#elif __linux


#endif //MACROS

/*Cross-platform macros*/

#define SAFE_DELETE(p)          if(p) { delete p; p = NULL; }
#define SAFE_ARRAY_DELETE(p)    if(p) { delete [] p; p = NULL; }
#define SAFE_RELEASE(p)         if(p) { p->Release(); p = NULL; }

#endif //_O_STDAFX_H

